import { reactive, ref, toRefs } from "vue";

export const useContent = () => {
  const meansopen = ref(false);
  const data = reactive({ formam: {} });
  const { formam } = toRefs(data);
  const closefun = () => {
    meansopen.value = false;
  };
  const meansFun = (row) => {
    formam.value = JSON.parse(JSON.stringify(row));
    meansopen.value = true;
  };
  return {
    meansopen,
    meansFun,
    formam,
    closefun,
  };
};
